package com.spic.business.supervision.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.spic.business.common.core.workflow.WorkFlowEntity;
import com.spic.common.core.annotation.Excel;
import lombok.Data;

import java.util.Date;
import java.util.List;

/**
 * 隐患排查督办对象 hidden_supervision
 *
 * @author spic
 * @date 2022-05-17
 */
@Data
public class HiddenSupervision extends WorkFlowEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long id;

    /** 隐患来源 */
    @Excel(name = "隐患来源")
    private String hazardSources;

    /** 隐患问题 */
    private String hiddenDescription;

    /** 隐患时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @Excel(name = "隐患时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date checkTime;

    /** 整改期限 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @Excel(name = "整改期限", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date rectificationPeriod;

    /** 整改部门 */
    @Excel(name = "整改部门")
    private String rectificationDept;

    /** 整改部门及其下属部门 */
    @TableField(exist = false)
    private List<Long> rectificationDepts;

    /** 整改人 */
    @Excel(name = "整改人")
    private String rectificationPeople;

    /** 部门主任的逗号分割的userId */
    @Excel(name = "部门主任的逗号分割的userId")
    private String leaderList;

    /** 整改要求 */
    @Excel(name = "整改要求")
    private String rectificationRequire;

    /** 督办频率 */
    @Excel(name = "督办频率")
    private Long messageRate;

    /** 定时任务id */
    private String taskId;

    /** 权限字符 */
    private Long deptId;

    public void setId(Long id)
    {
        this.id = id;
    }

}
